package com.zhan.easyexcelorder.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

/**
 * @author zhan
 * @since 2019-12-05 18:14
 */
@Data
public class SysUserExcelEntity extends BaseRowModel {

    @ExcelProperty(index = 0, value = "姓名")
    private String username;
    @ExcelProperty(index = 1, value = "手机号")
    private String phone;
    @ExcelProperty(index = 2, value = "上班普席工号")
    private String generalCode;
    @ExcelProperty(index = 3, value = "抢班班普席工号")
    private String snatchCode;
    @ExcelProperty(index = 4, value = "角色名称")
    private String roleName;

    @ExcelProperty(index = 5, value = "部门全称")
    private String fullDepartmentName;

    public SysUserExcelEntity(String username, String phone, String generalCode, String snatchCode, String roleName, String fullDepartmentName) {
        this.username = username;
        this.phone = phone;
        this.generalCode = generalCode;
        this.snatchCode = snatchCode;
        this.roleName = roleName;
        this.fullDepartmentName = fullDepartmentName;
    }

    /**
     * 无参构造函数是导入的必要条件
     */
    public SysUserExcelEntity() {
    }
}
